<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="<?{$template_dir}?>/css/table.css"/>
<link rel="stylesheet" type="text/css" href="<?{$template_dir}?>/css/image.css"/>
<script src="<?{$template_dir}?>/js/jquery.js"></script>
<script src="<?{$template_dir}?>/js/images_contet.js"></script>
<script type="text/javascript" src="<?{$template_dir}?>/js/uploader.js"></script>

<style>
#uploadImg{ font-size:12px; overflow:hidden; position:absolute;}
#id1 {
	position: absolute;
	opacity:0;
	filter: alpha(opacity = 0);
}
</style>
</head>
<body>
<!-- index -->
<div class="content">
<form id="formNameid1" method="post" enctype="multipart/form-data" action="<?{$baseurl}?>/images/upload" target="iframeid1">
<table>
<tr>
<td>
	<input type="hidden" name="id" value="id1" />
	<span id="uploaderid1" class="uploadImg">
	<input class="input" size="1" id="id1" name="id1" type="file" value="id1" onchange='return uploadFile(this,"")' />
	</span>
	<span id="loadingid1"></span>	
	文件上传
	<iframe name="iframeid1" src="<?{$baseurl}?>/images/upload" width="400" height="100" style="display:none"> </iframe>


</td>

<?{$msg}?>
<td><a href="show">浏览文件</a></td>
<td>文件大小不能超过2M</td>
<td><select id="dirtype" name="dirtype">
<?{foreach from=$dirList key=k  item=v}?>
<option value="<?{$k}?>"><?{$v}?></option>
<?{/foreach }?>
</select></td>
</tr>
</table>
</form>


<table>
<tr>
<th>文件名</th><!-- (点击使用该文件：只列出最新的20个文件) -->
<th>文件大小</th>
<th>上传进度</th>
<th>删除</th>
</tr>
<tr id="request"></tr>
<?{foreach from=$fileinfo item=values}?>
<tr>
<td><?{$values.originalname}?></td>
<td><?{$values.filesize}?>K</td>
<td>完成</td>
<td><input type="button"  alt="<?{$values.filename}?>.<?{$values.filetype}?>"  name="<?{$values.id}?>" class="Delfilename" value="删除" /> </td>
</tr>
<?{/foreach }?>
</table>



</div>
</body>
</html>